<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>msg:{{msg }}</p>
        <p>str:{{str }}</p>
        <p>msg1:{{msg1 }}</p>
        <input type="button" value="修改值" @click="handler">
    </div>
</body>
<scrip src="./js/vue.js"></script>
    <script src="./js//newVue.js"></script>
<script>
    let vm = new Vue({
        el:"#app",
        data:{
            msg:'hello',
            str:'hi',
            msg1:'how are you',
        },
        methods:{
            handler(){
                vm.msg=A
            }
        }
    })
</script>
</html>